package com.zsy.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;
@Data

public class Page<T> {

    private List<T> records;
    private Long total;
    private Long pageSize;
    private Long page;
    private Integer pages;

    public Page() {
    }

    public Page(List<T> list, long total, long pageSize, long pageNum) {
        this.records = list;
        this.total = total;
        this.pageSize = pageSize;
        this.page = pageNum;
    }

    public Page(List<T> list, long total, long size, long pageNum, int pages) {
        this.records = list;
        this.total = total;
        this.pageSize = size;
        this.page = pageNum;
        this.pages = pages;

    }
}
